package com.app.newiptv.activity;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class OtherLoginReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.

        String action = intent.getAction();
        if (action.equals("com.scott.sayhi"))
        {
            Toast.makeText(context, "您的账号已在其他设备登录", Toast.LENGTH_LONG).show();
        }
    }
}
